
<div class="modal fade" id="div-modal-modify" tabindex="-1" data-bs-backdrop="static" aria-labelledby="title-modal-modify" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="title-modal-modify">修改权限</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <form id="form-modal-modify">
                    <label>权限ID(无法更改)<input name="id" id="input-modal-modify" readonly/></label>
                    <div class="mb-3">
                        <label for="input-modal-modify-permName" class="col-form-label">权限名称:</label>
                        <input name="permName" type="text" class="form-control" id="input-modal-modify-permName">
                    </div>
                    <div class="mb-3">
                        <label for="input-modal-modify-url" class="col-form-label">权限地址:</label>
                        <textarea name="url" class="form-control" id="input-modal-modify-url"></textarea>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary btn-modal-cancel" data-bs-dismiss="modal">取消</button>
                <button type="button" class="btn btn-primary" onclick="modifyPerm()">确认</button>
            </div>
        </div>
    </div>
</div>



<div class="modal fade" id="div-modal-add" tabindex="-1" data-bs-backdrop="static" aria-labelledby="title-modal-add" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <h5 class="modal-title" id="title-modal-add">添加新权限</h5>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <form id="form-modal-add">
                    <label>权限ID(无法更改)<input name="id" id="input-modal-add" readonly/></label>
                    <div class="mb-3">
                        <label for="input-modal-modify-permName" class="col-form-label">权限名称:</label>
                        <input name="permName" type="text" class="form-control" id="input-modal-add-permName">
                    </div>
                    <div class="mb-3">
                        <label for="input-modal-modify-url" class="col-form-label">权限地址:</label>
                        <textarea name="url" class="form-control" id="input-modal-add-url"></textarea>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-secondary btn-modal-cancel" data-bs-dismiss="modal">取消</button>
                <button type="button" class="btn btn-primary" onclick="addPerm()">确认</button>
            </div>
        </div>
    </div>
</div>